#! /bin/bash

# find the parent process id of the firefox process and kill it
ps -C firefox -o ppid= | xargs kill
# or pgrep firefox | ps -o ppid= -q | xargs kill
